package com.hsc.yalebao.merchant.util;

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

public class DigestUtils
{
  static MessageDigest getDigest(String paramString)
  {
    try
    {
      MessageDigest localMessageDigest = MessageDigest.getInstance(paramString);
      return localMessageDigest;
    }
    catch (NoSuchAlgorithmException localNoSuchAlgorithmException)
    {
      throw new RuntimeException(localNoSuchAlgorithmException.getMessage());
    }
  }

  private static MessageDigest getMd5Digest()
  {
    return getDigest("MD5");
  }

  public static byte[] md5(byte[] paramArrayOfByte)
  {
    return getMd5Digest().digest(paramArrayOfByte);
  }

  public static String md5Hex(byte[] paramArrayOfByte)
  {
    return Hex.encodeHexString(md5(paramArrayOfByte));
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.merchant.util.DigestUtils
 * JD-Core Version:    0.6.2
 */